package com.sgam.mf.dao.sec;

import org.springframework.stereotype.Repository;

import com.sgam.mf.dao.GenericDAOImpl;
import com.sgam.mf.domain.sec.SecUser;

@Repository
public class SecUserDAOImpl extends GenericDAOImpl<SecUser> implements SecUserDAO {

	public SecUser getByName (String userName){
		SecUser result =(SecUser)getCurrentSession().createQuery("from SecUser where USER_LOGIN = :name ").setParameter("name", userName).list().get(0);
		return result;
	}
	
}

	
